package cn.wolfcode.luowowo.article.service.impl;

import cn.wolfcode.luowowo.article.domain.Scenic;
import cn.wolfcode.luowowo.article.mapper.ScenicMapper;
import cn.wolfcode.luowowo.article.service.IScenicService;
import com.alibaba.dubbo.config.annotation.Service;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.List;
@Service
public class ScenicServiceImpl implements IScenicService {

    @Autowired
    private ScenicMapper scenicMapper;

    @Override
    public Scenic selectByPrimaryKey(Long id) {
        return scenicMapper.selectByPrimaryKey(id);
    }

    @Override
    public List<Scenic> selectAll() {
        return scenicMapper.selectAll();
    }

    @Override
    public List<Scenic> selectById(Long id) {
        return scenicMapper.selectById(id);
    }

    @Override
    public List<Scenic> selectByimgId(Long id) {
        return scenicMapper.selectByimgId(id);
    }

    @Override
    public long selectByimgIdCount(Long id) {
        return scenicMapper.selectByimgIdCount(id);
    }
}
